use readability_fork::extractor;
//use tracing::info;
use anyhow::Result;
use std::{sync::Arc, io::Read};
use url::Url;
pub async fn readability(/*html: &mut R,*/url: Arc<Url>) -> Result<extractor::Product> {
    let data = extractor::scrape(url.as_str()).await?;
    // let data = extractor::extract(html, &url)?;
    // let data = extractor::extract(html,&url)?;

    Ok(data)
}
